package com.alibaba;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

@SpringBootApplication//申明当前类是一个SpringBoot项目的启动类
@MapperScan("com.alibaba.*.mapper")//扫描mapper接口 - 生成Mapper接口的代理对象，Service注入使用
@ServletComponentScan(value = {"com.alibaba.basic.listener"})
public class PethomeApplication {
    public static void main(String[] args) {
        //使用SpringBoot的启动类  去 运行或启动Spring应用
        SpringApplication.run(PethomeApplication.class);
    }
}
